#ifndef __KERNEL_DEBUG_H
#define __KERNEL_DEBUG_H

void panic_spain(const char* filename, int line, const char* func, const char* condition);

#define PANIC(...)  panic_spain(__FILE__, __LINE__, __FUNCTION__, __VA_ARGS__)

#ifdef NDEBUG
    #define ASSERT(condition)   ((void)0)
#else
    #define ASSERT(condition)\
            if(condition){}else{PANIC(#condition);}
#endif
#endif